package cn.niit.letuseatdemo.mapper;

import java.util.List;

import cn.niit.letuseatdemo.entity.domain.ShopCategory;
import org.springframework.stereotype.Repository;

/**
 * 店铺类别Mapper接口
 * 
 * @author aoli_jojo
 * @date 2022-10-26
 */
@Repository
public interface ShopCategoryMapper 
{
    /**
     * 查询店铺类别
     * 
     * @param categoryId 店铺类别主键
     * @return 店铺类别
     */
    public ShopCategory selectShopCategoryByCategoryId(Long categoryId);

    /**
     * 查询店铺类别列表
     * 
     * @param shopCategory 店铺类别
     * @return 店铺类别集合
     */
    public List<ShopCategory> selectShopCategoryList(ShopCategory shopCategory);

    /**
     * 新增店铺类别
     * 
     * @param shopCategory 店铺类别
     * @return 结果
     */
    public int insertShopCategory(ShopCategory shopCategory);

    /**
     * 修改店铺类别
     * 
     * @param shopCategory 店铺类别
     * @return 结果
     */
    public int updateShopCategory(ShopCategory shopCategory);

    /**
     * 删除店铺类别
     * 
     * @param categoryId 店铺类别主键
     * @return 结果
     */
    public int deleteShopCategoryByCategoryId(Long categoryId);

    /**
     * 批量删除店铺类别
     * 
     * @param categoryIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopCategoryByCategoryIds(String[] categoryIds);
}
